<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="pum" :rules="rules" label-width="100px" id="mvcfm">
      <div class="form-unit">
        <span class="mvc-title-left"> 列表条目 </span>
      </div>
      <el-table :data="pum">
        <el-table-column label="产品条形码" prop="product_barcode">
        </el-table-column>
        <el-table-column label="供应商" prop="client_name">
        </el-table-column>
        <el-table-column label="产品名称" prop="pronum_prodece">
        </el-table-column>
        <el-table-column label="产品型号" prop="product_model">
        </el-table-column>
        <el-table-column label="产品规格" prop="product_norm">
        </el-table-column>
        <el-table-column label="简要描述" prop="product_des">
        </el-table-column>
        <el-table-column label="补充" prop="pronum_remark">
        </el-table-column>
        <el-table-column label="数量" prop="pronum_no">
        </el-table-column>
        <el-table-column label="数量单位" prop="pronum_nuit">
        </el-table-column>
        <el-table-column label="单价" prop="pronum_price">
        </el-table-column>
        <el-table-column label="发货时间" prop="pronum_endate">
          <template slot-scope="scope">
            {{getDateTimeString(scope.row,'pronum_endate')}}
          </template>
        </el-table-column>
        <el-table-column label="总价" prop="total_prices">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 甲乙双方责任 </span>
      </div>
      <el-table :data="s_duty">
        <el-table-column label="备注" prop="description">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 付款方式 </span>
      </div>
      <el-table :data="s_pay">
        <el-table-column label="首次付款" prop="pay_first">
        </el-table-column>
        <el-table-column label="二次付款" prop="pay_sec">
        </el-table-column>
        <el-table-column label="尾付款" prop="pay_end">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 付款账号 </span>
      </div>
      <el-table :data="s_bank">
        <el-table-column label="类型" prop="bank_type">
        </el-table-column>
        <el-table-column label="银行名称" prop="bank_tname">
        </el-table-column>
        <el-table-column label="开户姓名" prop="bank_tname">
        </el-table-column>
        <el-table-column label="银行账号" prop="bank_account">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 违约责任 </span>
      </div>
      <el-table :data="s_breakduty">
        <el-table-column label="备注" prop="description">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 其他要求 </span>
      </div>
      <el-table :data="s_demand">
        <el-table-column label="备注" prop="description">
        </el-table-column>
      </el-table>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'PublicContractdet',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        pum: [],
        s_duty: [],
        s_pay: [],
        s_bank: [],
        s_breakduty: [],
        s_demand: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/psi/main/CommonSelect/publicContractdet?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
